from .models import is_member

USERS = {'000000': 'phuoc!'}
GROUPS = {'000000': ['group:administrators']}

def groupfinder(userid, request):

    if userid in USERS:
        return GROUPS.get(userid, [])
    if is_member(userid):
        return []  # it means that userid is logged in (it returns None if userid isn't logged in)	
